<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.out{
				width: 160px;
				height: 30px;
				border: 2px solid #336699;
				background-color: transparent;
				filter: drop-shadow(1px 1px 1px #336699);
				/*background-color: #336699;*/
				transition: all 300ms  ease 10ms;
				border-radius: 15px;
			}
			.in{
				border-radius: 10px;
				display: block;
				float: left;
				width: 20px;
				height: 20px;
				margin: 5px;
				/*background-color: #FFFFFF;*/
				background-color: #336699;
				filter: drop-shadow(2px 2px 2px #336699);
				
				transition: margin-left 300ms  ease 10ms;
			}
			.toggleButton{
				display: none;
			}
			.toggleButton:checked+div{
				border: 2px solid #EEEEEE;
				
				/*background-color: #EEEEEE;*/
				transition: all 300ms  ease 10ms;
			}
			.toggleButton:checked+div>.in{
				/*float: right;*/
				margin-left: 135px;
				background-color: #EEEEEE;
				
				transition: margin-left 300ms  ease 10ms;
			}
		</style>
	</head>
	<body>
		<div>
			<label>
				<input type="checkbox" class="toggleButton"  />
				<div class="out">
					<span class="in"></span>
				</div>
			</label>
		</div>
	</body>
</html>
